//package com.yy.ws;
//
//import javax.servlet.http.HttpSession;
//import javax.websocket.HandshakeResponse;
//import javax.websocket.server.HandshakeRequest;
//import javax.websocket.server.ServerEndpointConfig;
//import java.util.Map;
//
///**
// * @author 鱼凫
// * @version 1.0
// * Create by 2021/12/16 18:18
// * @Description //TODO
// */
//public class GetHttpSessionConfigurator extends ServerEndpointConfig.Configurator {
//
//
//    @Override
//    public void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response) {
//        //获取httpsession对象
//        HttpSession httpSession = (HttpSession) request.getHttpSession();
//        //存放httpsession对象
//        Map<String, Object> userProperties = sec.getUserProperties();
//        userProperties.put(HttpSession.class.getName(), httpSession);
//    }
//}
